<script type="text/javascript">
$(function(){
	$.post("psamCardManage/getIssuePsamCard",getIssuePsamCard,"json");
})
function getIssuePsamCard(json){
	if(json.statusCode==DWZ.statusCode.error){
		navTabAjaxDone(json);
	}else{
		var content="";
		var numPerPage=json.numPerPage;
		var currentPage=json.currentPage;
		var totalCount=json.totalCount;
		var pageCount=json.pageCount;
		var list=json.list;
		if(list.length==0){
			content+="<tr><td colspan='10' align='center' >未查询到数据</td></tr>"
		}else{
			for(var i=0;i<list.length;i++){
				content+="<tr onmouseover='moveoverMouse(this)' onmouseout='moveoutMouse(this)' align='center'><td>"+list[i].cardsequence+"</td><td>"+list[i].city+"</td><td>"+list[i].customid+"</td><td>"+list[i].customname+
				"</td><td>"+list[i].province+"</td><td>"+list[i].rfu+"</td><td>"+list[i].terminalid+
				"</td><td>"+list[i].time+"</td><td>"+list[i].pin+"</td></tr>"
			}
		}
		$("#tbodyByPsamCardManage").html(content);
		$("input[name='numPerPage']").val(numPerPage);
		$("input[name='pageNum']").val(currentPage); 
//		$("input[name='pageCount']").val(pageCount);
		$("#totalCountByPsamCardManage").text("条，共"+totalCount+"条");
//		var pagination="<a href='#' onclick="+"previous($('#getIssuePsamCard'),getIssuePsamCard) >上一页  </a><a href='#' onclick="+"next($('#getIssuePsamCard'),getIssuePsamCard)> 下一页</a><span>当前第"+currentPage+"页，共"+pageCount+"页</span>";
//		$("#paginationByPsamCardManage").html(pagination);
		$("#paginationByPsamCardManage").addClass("pagination").attr("targetType","navTab").attr("totalCount",totalCount).attr("numPerPage",numPerPage).attr("pageNumShown","10").attr("currentPage",currentPage).attr("rel","tbodyByPsamCardManage").attr("callback","getIssuePsamCard");
		$("div.pagination").each(function(){
			var $this = $(this);
			$this.pagination({
				targetType:"navTab",
				rel:"tbodyByPsamCardManage",
				totalCount:totalCount,
				numPerPage:numPerPage,
				pageNumShown:10,
				currentPage:currentPage,
				callback:getIssuePsamCard
			});
		});
		var $p = $("#ByPsamCardMan");
		initUI($p);
	}
	
}

</script>
<div class="pageHeader ">
	<form id="pagerForm" method="post"
		action="psamCardManage/getIssuePsamCard"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this,getIssuePsamCard);">
		<input type="hidden" name="pageNum" value="" /> <input type="hidden"
			name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar">
			<!-- <table class="searchContent">
			<tr>
				<td><label>卡序列号：</label></td>
				<td><input type="text"  name="cardsequence" size="30" /></td>
			
				<td><label>卡类型：</label></td>
				<td><input  name="cardtype" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>终端编号：</label></td>
				<td><input  name="terminalid"  type="text" size="30"  /></td>
			</tr>
			</table>	 -->
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-6 col-sm-12">
					<p>
						<label>卡序列号：</label> <input type="text" name="cardsequence"
							size="30" />
				</div>
				<!-- <div class="col-md-4 col-sm-12">
					<p>
						<label>卡类型：</label> <input name="cardtype" class="" type="text"
							size="30" />
					</p>
				</div> -->
				<div class="col-md-6 col-sm-12">
					<p>
						<label>终端编号：</label> <input name="terminalid" type="text"
							size="30" />
					</p>
				</div>
			</div>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>

<form method="post" action="" class="pageForm required-validate"
	onsubmit="return validateCallback(this,refresh);">
	<div class="pageContent">
		<div id="ByPsamCardMan">
			<table class="table" width="100%" layoutH="218">
				<thead>
					<tr align="center">
						<!-- <th width="2%"><input type="checkbox" name=""
							group="pSamManage" class="checkboxCtrl"></th> -->
						<th width="16%">卡序列号</th>
						<!-- <th width="6%">卡类型</th> -->
						<th width="8%">城市</th>
						<th width="18%">客户编号</th>
						<th width="8%">客户姓名</th>
						<th width="8%">省份</th>
						<th width="8%">RFU</th>
						<th width="14%">终端编号</th>
						<th width="10%">操作时间</th>
						<th width="12%">PIN</th>
					</tr>
				</thead>
				<tbody id="tbodyByPsamCardManage">
				</tbody>
			</table>
		</div>
		<!-- <div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select id="numPerPageByPsamCardManage" name="numPerPage" onchange="paging(this,$('#getIssuePsamCard'),getIssuePsamCard)">
					<option value="20">20</option>
					<option value="30">30</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
				<span id="totalCountByPsamCardManage" ></span>
			</div>
			<div id="paginationByPsamCardManage" class="pagination1"  ></div>
		</div> -->
		<div class="panelBar">
			<div class="pages">
				<span>显示</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value},'tbodyByPsamCardManage',getIssuePsamCard)">
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
				</select> <span id="totalCountByPsamCardManage">条，共${totalCount}条</span>
			</div>
			<div callback='getIssuePsamCard' id="paginationByPsamCardManage"
				rel="tbodyByPsamCardManage" class="pagination" targetType="navTab"
				totalCount="200" numPerPage="5" pageNumShown="5" currentPage="1"></div>
		</div>
	</div>
</form>


